package com.bbs.map;

import com.bbs.pojo.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Mapper
public interface adminMapper {
    public Admin findAdminByUsernameAndPassword(@RequestParam("name")String name);

    public int addAdmin();

    public List<Admin> getAllAdmin();

    public int removeAdmin(Integer id);

    default String print(){
        return "这是一个关乎用户的方法";
    }
}
